/*
* acooly.cn Inc.
* Copyright (c) 2017 All Rights Reserved.
* create by ouwen
* date:2017-09-20
*/
package com.yiji.fintech.musfinance.entity;


import com.acooly.core.common.domain.AbstractEntity;
import com.yiji.fintech.musfinance.base.enums.CardTypeEnum;
import com.yiji.fintech.musfinance.base.enums.PersonalCorporateTypeEnum;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import javax.validation.constraints.Size;

/**
 * center_bank_card_bin Entity
 *
 * @author ouwen
 * Date: 2017-09-20 13:41:34
 */
@Getter
@Setter
@Entity
@Table(name = "center_bank_card_bin")
public class BankCardBin extends AbstractEntity {
	/** serialVersionUID */
	private static final long serialVersionUID = 1L;


	/** 银行全称 */
	@Size(max=50)
    private String bankName;

	/** 银行英文简称 */
	@Size(max=10)
    private String bankId;

	/** 发卡行机构代码 */
	@Size(max=16)
    private String bankCode;

	/** 对公对私 */
    @Enumerated(EnumType.STRING)
    private PersonalCorporateTypeEnum personalCorporateType = PersonalCorporateTypeEnum.PERSONAL;

	/** 卡产品名称 */
	@Size(max=50)
    private String cardName;

	/** 借贷类型 */
    @Enumerated(EnumType.STRING)
    private CardTypeEnum cardType;

	/** 卡号长度 */
    private Integer cardLength;

	/** 示范卡号 */
	@Size(max=50)
    private String cardNum;

	/** 卡标记的长度 */
    private Integer cardFlagLen;

	/** 卡识别标记 */
	@Size(max=50)
    private String cardFlag;



}
